package com.hellpro.lolbox.video.view.fragment.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * 类描述:
 * 创建人:阿犇
 * 创建时间:2016/10/20
 * 备注:
 */

public class TestGridView extends GridView {
    public TestGridView(Context context) {
        super(context);
    }

    public TestGridView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public TestGridView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }
    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2,MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
    }
}
